C forking program [closed]

Posted by walas on Stack Overflow See other posts from Stack Overflow or by walas
Published on 2010-05-23T19:56:56Z Indexed on 2010/05/23 20:11 UTC
Read the original article Hit count: 96

Filed under:

I need to write a C program that has a parent and n children that act as follows:

  • Parent process:
    1. Reads a value n from the user
    2. Forks n children
    3. Waits to receive exit code from the first child and prints it
    4. Loops forever

© Stack Overflow or respective owner

Related posts about c